import http from '@/utils/http'


//获取用户列表
export function getUserListApi() {
    return http({
      url: `user/list`,
      method: 'get',
    })
  }

  //根据id删除用户
  export function deleteUserByIdApi(id) {
    return http({
      url: `user/delete/${id}`,
      method: 'delete',
    })
  }
  //修改用户信息
  export function updateUserInfoApi(data) {
    return http({
      url: `user/update`,
      method: 'put',
      data: data
    })
  }
